<?php
header('content-type:image/jpeg');
$uin=empty($_GET['uin'])?exit('Error!'):$_GET['uin'];
$sig=empty($_GET['sig'])?exit('Error!'):$_GET['sig'];
function getimg($uin,$sig)
{
	$ch=curl_init('http://captcha.qq.com/getimgbysig?aid=549000929&uin='.$uin.'&sig='.$sig);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	curl_setopt($ch, CURLOPT_USERAGENT,'Mozilla/5.0 (Linux; U; Android 4.0.4; es-mx; HTC_One_X Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0');
    $ret = curl_exec($ch);
    curl_close($ch);
    return $ret;
}
echo getimg($uin,$sig);

?>